package com.ruge.api.trade.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * description: RefundStatusEnum
 * create time at 2024/4/23 21:54
 *
 * @author alice.ruge
 * @since 0.0.3
 */

public enum RefundStatusEnum {
    /**
     * 退款状态枚举
     */
    APPLY_REFUND(0, "发起退款"),
    SENDING(1, "退款中"),
    SUCCESS(2, "成功"),
    FAIL(3, "失败");

    @JsonValue
    private final Integer code;
    private final String value;

    RefundStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getValue() {
        return this.value;
    }
}
